package com.jackeysun.app_widget

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.jackeysun.app_widget.databinding.ActivityMain2Binding
import com.jackeysun.app_widget.databinding.ActivityMain3Binding
import java.io.File

class MainActivity3 : AppCompatActivity() {

    private lateinit var mBinding: ActivityMain3Binding
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        mBinding = ActivityMain3Binding.inflate(layoutInflater)
        setContentView(mBinding.root)

        mBinding.pdfView.loadAssets("sample.pdf")
    }

    override fun onDestroy() {
        super.onDestroy()
        mBinding.pdfView.release()
    }
}